package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DdfenleiMapper;
import com.ruoyi.system.domain.Ddfenlei;
import com.ruoyi.system.service.IDdfenleiService;

/**
 * 订单类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-15
 */
@Service
public class DdfenleiServiceImpl implements IDdfenleiService 
{
    @Autowired
    private DdfenleiMapper ddfenleiMapper;

    /**
     * 查询订单类型
     * 
     * @param ddflId 订单类型主键
     * @return 订单类型
     */
    @Override
    public Ddfenlei selectDdfenleiByDdflId(Long ddflId)
    {
        return ddfenleiMapper.selectDdfenleiByDdflId(ddflId);
    }

    /**
     * 查询订单类型列表
     * 
     * @param ddfenlei 订单类型
     * @return 订单类型
     */
    @Override
    public List<Ddfenlei> selectDdfenleiList(Ddfenlei ddfenlei)
    {
        return ddfenleiMapper.selectDdfenleiList(ddfenlei);
    }

    /**
     * 新增订单类型
     * 
     * @param ddfenlei 订单类型
     * @return 结果
     */
    @Override
    public int insertDdfenlei(Ddfenlei ddfenlei)
    {
        return ddfenleiMapper.insertDdfenlei(ddfenlei);
    }

    /**
     * 修改订单类型
     * 
     * @param ddfenlei 订单类型
     * @return 结果
     */
    @Override
    public int updateDdfenlei(Ddfenlei ddfenlei)
    {
        return ddfenleiMapper.updateDdfenlei(ddfenlei);
    }

    /**
     * 批量删除订单类型
     * 
     * @param ddflIds 需要删除的订单类型主键
     * @return 结果
     */
    @Override
    public int deleteDdfenleiByDdflIds(Long[] ddflIds)
    {
        return ddfenleiMapper.deleteDdfenleiByDdflIds(ddflIds);
    }

    /**
     * 删除订单类型信息
     * 
     * @param ddflId 订单类型主键
     * @return 结果
     */
    @Override
    public int deleteDdfenleiByDdflId(Long ddflId)
    {
        return ddfenleiMapper.deleteDdfenleiByDdflId(ddflId);
    }
}
